package com.example.demo.server;

import com.example.demo.mapper.frontMapper;
import com.example.demo.model.Reservation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class frontServer {
    @Autowired(required = false)
    public frontMapper frontMapper;

    @Transactional
    public void  add(Reservation reservation){
        System.out.println(reservation);
        int i = frontMapper.insertSelective(reservation);
        System.out.println(i);
    }

}
